<?php

namespace App\Http\Controllers\Api;

use App\Services\JPushService;

class JPushController
{
    /**
     * 极光推送
     */
    public function jPush()
    {
        JPushService::pushNotify([
            //标题
            'title' => '测试',//内容
            'content' => '测试',//设备标识，跟设备相关
            'reg_id' => '059d8d77085e237ec41a628f884d75f837a18a1c32230cd41a70975243ab2309',//扩展字段
            'extras' => [
                'key' => 'valuey7',//推送类型
            ],
            'type' => JPushService::PUSH_TYPE_REG_ID,
        ]);
    }

}
